Make sure Symbol is defined on older js engines
This commit is contained in:
parent
df00507fb3
commit
5cfefd0c41
|
|
@ -44,6 +44,12 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function find_builtins() {
|
function find_builtins() {
|
||||||
|
|
||||||
|
// Compatibility fix for es5.1 and earlier where Symbol isn't defined
|
||||||
|
if (!global.Symbol) {
|
||||||
|
global.Symbol = new Function();
|
||||||
|
}
|
||||||
|
|
||||||
var a = [];
|
var a = [];
|
||||||
[ Object, Array, Function, Number,
|
[ Object, Array, Function, Number,
|
||||||
String, Boolean, Error, Math,
|
String, Boolean, Error, Math,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user