|
21 | 21 | /* eslint-disable strict */ |
22 | 22 | (function(keepAlive) { |
23 | 23 | // Save original builtIns |
24 | | - var |
25 | | - Function_prototype_toString = Function.prototype.toString, |
26 | | - Object_defineProperty = Object.defineProperty, |
27 | | - Object_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, |
28 | | - Object_getOwnPropertyNames = Object.getOwnPropertyNames, |
29 | | - Object_keys = Object.keys, |
30 | | - Object_prototype_toString = Object.prototype.toString, |
31 | | - Object_setPrototypeOf = Object.setPrototypeOf, |
32 | | - Reflect_apply = Reflect.apply, |
33 | | - Reflect_construct = Reflect.construct, |
34 | | - Map_keys = Map.prototype.keys, |
35 | | - Map_values = Map.prototype.values, |
36 | | - Map_entries = Map.prototype.entries, |
37 | | - Set_entries = Set.prototype.entries, |
38 | | - Set_values = Set.prototype.values, |
39 | | - Symbol_keyFor = Symbol.keyFor, |
40 | | - Symbol_for = Symbol.for, |
41 | | - Global_ParseInt = parseInt, |
42 | | - JSON_parse = JSON.parse, |
43 | | - JSON_stringify = JSON.stringify; |
44 | | - var BuiltInError = Error; |
45 | | - var global = this; |
| 24 | + const Function_prototype_toString = Function.prototype.toString; |
| 25 | + const Object_defineProperty = Object.defineProperty; |
| 26 | + const Object_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 27 | + const Object_getOwnPropertyNames = Object.getOwnPropertyNames; |
| 28 | + const Object_keys = Object.keys; |
| 29 | + const Object_prototype_toString = Object.prototype.toString; |
| 30 | + const Object_setPrototypeOf = Object.setPrototypeOf; |
| 31 | + const Reflect_apply = Reflect.apply; |
| 32 | + const Reflect_construct = Reflect.construct; |
| 33 | + const Map_keys = Map.prototype.keys; |
| 34 | + const Map_values = Map.prototype.values; |
| 35 | + const Map_entries = Map.prototype.entries; |
| 36 | + const Set_entries = Set.prototype.entries; |
| 37 | + const Set_values = Set.prototype.values; |
| 38 | + const Symbol_keyFor = Symbol.keyFor; |
| 39 | + const Symbol_for = Symbol.for; |
| 40 | + const Global_ParseInt = parseInt; |
| 41 | + const JSON_parse = JSON.parse; |
| 42 | + const JSON_stringify = JSON.stringify; |
| 43 | + const BuiltInError = Error; |
| 44 | + const global = this; |
46 | 45 |
|
47 | 46 | // Simulate V8 JavaScript stack trace API |
48 | 47 | function StackFrame(func, funcName, fileName, lineNumber, columnNumber) { |
|
614 | 613 |
|
615 | 614 | var attributes = 0; |
616 | 615 | // taken from v8.h. Update if this changes in future |
617 | | - const ReadOnly = 1, |
618 | | - DontEnum = 2, |
619 | | - DontDelete = 4; |
| 616 | + const ReadOnly = 1; |
| 617 | + const DontEnum = 2; |
| 618 | + const DontDelete = 4; |
620 | 619 |
|
621 | 620 | if (!descriptor.writable) { |
622 | 621 | attributes |= ReadOnly; |
|
0 commit comments