aboutsummaryrefslogtreecommitdiffstats
path: root/test/node_smoke_tests/iterable_with_symbol_polyfill.js
blob: dd377f19c25509c099145e669f299c1bc58180e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* jshint esnext: true */

"use strict";

var assert = require( "assert" );

delete global.Symbol;
require( "core-js" );

assert.strictEqual( typeof Symbol, "function", "Expected Symbol to be a function" );
assert.notEqual( typeof Symbol.iterator, "symbol", "Expected Symbol.iterator to be polyfilled" );

require( "./lib/ensure_iterability" )();