Skip to content

Commit 1fe57b4

Browse files
Merge pull request ccgus#34 from BohemianCoding/feature/17688
Code Review: MSLogAction not actually called (#17688)
2 parents 6ecf550 + 7959fc1 commit 1fe57b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/framework/COScript.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ - (void)addExtrasToRuntime {
157157

158158
// if there is a console module, use it to polyfill the console global
159159
if ([self.coreModuleMap objectForKey:@"console"]) {
160-
[self pushObject:[self executeString:@"(function() { var Console = require('console'); var console = Console(); return console; })()"] withName:@"console"];
160+
[self pushObject:[self executeString:@"(function() { var Console = require('console'); var console = Console(); return NSDictionary.dictionaryWithDictionary(console).mutableCopy(); })()"] withName:@"console"];
161161
}
162162
}
163163

0 commit comments

Comments
 (0)