We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ecf550 + 7959fc1 commit 1fe57b4Copy full SHA for 1fe57b4
src/framework/COScript.m
@@ -157,7 +157,7 @@ - (void)addExtrasToRuntime {
157
158
// if there is a console module, use it to polyfill the console global
159
if ([self.coreModuleMap objectForKey:@"console"]) {
160
- [self pushObject:[self executeString:@"(function() { var Console = require('console'); var console = Console(); return console; })()"] withName:@"console"];
+ [self pushObject:[self executeString:@"(function() { var Console = require('console'); var console = Console(); return NSDictionary.dictionaryWithDictionary(console).mutableCopy(); })()"] withName:@"console"];
161
}
162
163
0 commit comments