Changeset 263905 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Jul 3, 2020, 1:06:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r263035 r263905 528 528 EncodedJSValue JSC_HOST_CALL globalFuncParseFloat(JSGlobalObject* globalObject, CallFrame* callFrame) 529 529 { 530 auto viewWithString = callFrame->argument(0).toString(globalObject)->viewWithUnderlyingString(globalObject); 530 VM& vm = globalObject->vm(); 531 auto scope = DECLARE_THROW_SCOPE(vm); 532 533 auto* jsString = callFrame->argument(0).toString(globalObject); 534 RETURN_IF_EXCEPTION(scope, { }); 535 auto viewWithString = jsString->viewWithUnderlyingString(globalObject); 536 RETURN_IF_EXCEPTION(scope, { }); 531 537 return JSValue::encode(jsNumber(parseFloat(viewWithString.view))); 532 538 }
Note:
See TracChangeset
for help on using the changeset viewer.