Changeset 259564 in webkit
- Timestamp:
- Apr 5, 2020, 9:34:36 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
JSTests/.gitattributes (modified) (1 diff)
-
JSTests/ChakraCore.yaml (modified) (1 diff)
-
JSTests/ChakraCore/test/es5/hasItem.baseline-jsc (added)
-
JSTests/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/jsc.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/.gitattributes
r259529 r259564 1 ChakraCore/test/es5/hasItem.baseline-jsc diff 2 1 3 test262/test/language/expressions/logical-assignment/lgcl-and-whitespace.js svn-properties=allow-tabs=on 2 4 test262/test/language/expressions/logical-assignment/lgcl-or-whitespace.js svn-properties=allow-tabs=on -
trunk/JSTests/ChakraCore.yaml
r252758 r259564 1470 1470 cmd: runChakra :baseline, "NoException", "enumerable.baseline-jsc", [] 1471 1471 - path: ChakraCore/test/es5/hasItem.js 1472 cmd: runChakra :baseline, "NoException", "hasItem.baseline ", []1472 cmd: runChakra :baseline, "NoException", "hasItem.baseline-jsc", [] 1473 1473 - path: ChakraCore/test/es5/regexSpace.js 1474 1474 cmd: runChakra :baseline, "NoException", "regexSpace.baseline", [] -
trunk/JSTests/ChangeLog
r259546 r259564 1 2020-04-05 Ross Kirsling <ross.kirsling@sony.com> 2 3 JSC shell shouldn't treat NUL as a terminator when printing a JS string 4 https://bugs.webkit.org/show_bug.cgi?id=210037 5 6 Reviewed by Darin Adler. 7 8 * .gitattributes: 9 * ChakraCore.yaml: 10 * ChakraCore/test/es5/hasItem.baseline-jsc: Added. 11 Update baseline and mark it diffable (as plaintext) in spite of containing \0. 12 1 13 2020-04-05 Alexey Shvayka <shvaikalesh@gmail.com> 2 14 -
trunk/Source/JavaScriptCore/ChangeLog
r259558 r259564 1 2020-04-05 Ross Kirsling <ross.kirsling@sony.com> 2 3 JSC shell shouldn't treat NUL as a terminator when printing a JS string 4 https://bugs.webkit.org/show_bug.cgi?id=210037 5 6 Reviewed by Darin Adler. 7 8 Since JS strings aren't null-terminated, it's probably a better experience to not stop printing when we see \0. 9 That is, 'abc\0def' should be printed as `abcdef` and not `abc`. 10 11 This patch updates our printing of evaluation results as well as the print / printErr / debug functions. 12 13 * jsc.cpp: 14 (printInternal): 15 (functionDebug): 16 (runInteractive): 17 1 18 2020-04-05 Yusuke Suzuki <ysuzuki@apple.com> 2 19 -
trunk/Source/JavaScriptCore/jsc.cpp
r258059 r259564 1269 1269 auto string = cStringFromViewWithString(globalObject, scope, viewWithString); 1270 1270 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1271 if (fprintf(out, "%s", string.data()) < 0) 1271 fwrite(string.data(), sizeof(char), string.length(), out); 1272 if (ferror(out)) 1272 1273 goto fail; 1273 1274 } … … 1290 1291 auto string = cStringFromViewWithString(globalObject, scope, viewWithString); 1291 1292 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1292 fprintf(stderr, "--> %s\n", string.data()); 1293 fputs("--> ", stderr); 1294 fwrite(string.data(), sizeof(char), string.length(), stderr); 1295 fputc('\n', stderr); 1293 1296 return JSValue::encode(jsUndefined()); 1294 1297 } … … 2796 2799 JSValue returnValue = evaluate(globalObject, jscSource(line, sourceOrigin, sourceOrigin.string()), JSValue(), evaluationException); 2797 2800 #endif 2798 if (evaluationException) 2799 printf("Exception: %s\n", evaluationException->value().toWTFString(globalObject).utf8().data()); 2800 else 2801 printf("%s\n", returnValue.toWTFString(globalObject).utf8().data()); 2801 CString result; 2802 if (evaluationException) { 2803 fputs("Exception: ", stdout); 2804 result = evaluationException->value().toWTFString(globalObject).utf8(); 2805 } else 2806 result = returnValue.toWTFString(globalObject).utf8(); 2807 fwrite(result.data(), sizeof(char), result.length(), stdout); 2808 putchar('\n'); 2802 2809 2803 2810 scope.clearException();
Note:
See TracChangeset
for help on using the changeset viewer.