diff --git a/vnext/Chakra/ChakraExecutor.cpp b/vnext/Chakra/ChakraExecutor.cpp index 3b80de0660d..e28808d9824 100644 --- a/vnext/Chakra/ChakraExecutor.cpp +++ b/vnext/Chakra/ChakraExecutor.cpp @@ -242,10 +242,10 @@ const char* script = "for (var fn in console) {\n" "if (typeof console[fn] === \"function\") {\n" "(function(name) {\n" - "obj[name] = function(...rest) {\n" - "console[name](rest);\n" + "obj[name] = function(...args) {\n" + "console[name](...args);\n" "if (name in debugConsole && typeof debugConsole[name] === \"function\") {\n" - "debugConsole[name](rest);\n" + "debugConsole[name](...args);\n" "}\n" "}\n" "})(fn);\n"