| Index: chrome/renderer/extensions/safe_builtins.cc
|
| diff --git a/chrome/renderer/extensions/safe_builtins.cc b/chrome/renderer/extensions/safe_builtins.cc
|
| index 2a58bf291cee6212e9d35e7693f72fa125c7cf13..dbb85b7e402306974827d7bcd9f196953bf0a99f 100644
|
| --- a/chrome/renderer/extensions/safe_builtins.cc
|
| +++ b/chrome/renderer/extensions/safe_builtins.cc
|
| @@ -69,13 +69,18 @@ const char kScript[] =
|
| "// though. It would be nice to generate this somehow.\n"
|
| "// Note: no JSON, it needs to handle toJSON being overriden so is\n"
|
| "// implemented by hand.\n"
|
| - "var builtinTypes = [Object, Function, Array, String, Boolean, Number,\n"
|
| - " /*Math,*/ Date, RegExp, /*JSON,*/ Error, EvalError,\n"
|
| - " ReferenceError, SyntaxError, TypeError, URIError];\n"
|
| + "// Note: no Math, it's static (we also don't need it yet).\n"
|
| + "// Note: the other things that are commented out are ones that aren't\n"
|
| + "// needed to make the clobber tests pass, because running this\n"
|
| + "// file is a bit slow.\n"
|
| + "var builtinTypes = [\n"
|
| + " Object, Function, Array, String, /*Boolean, Number,*/\n"
|
| + " /*Math, Date,*/ RegExp, /*JSON, Error, EvalError,\n"
|
| + " ReferenceError, SyntaxError, TypeError, URIError*/];\n"
|
| "builtinTypes.forEach(function(builtin) {\n"
|
| " Save(builtin.name, getSafeBuiltin(builtin, true));\n"
|
| "});\n"
|
| - "Save('Math', getSafeBuiltin(Math, false));\n"
|
| + "//Save('Math', getSafeBuiltin(Math, false));\n"
|
| "// Save JSON. This is trickier because extensions can override toJSON in\n"
|
| "// incompatible ways, and we need to prevent that.\n"
|
| "var builtinToJSONs = builtinTypes.map(function(t) {\n"
|
|
|