Make sure Symbol is defined on older js engines

This commit is contained in:
Anthony Van de Gejuchte 2016-05-22 22:08:18 +02:00
parent df00507fb3
commit 5cfefd0c41

View File

@ -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,