Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index cc3f97c43135914d40899598adcb38c1f579916c..78b379e012b018afdad616b620cda521171a03aa 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1497,6 +1497,14 @@ RUNTIME_FUNCTION(Runtime_SetValueOf) { |
} |
+RUNTIME_FUNCTION(Runtime_JSValueGetValue) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(JSValue, obj, 0); |
+ return JSValue::cast(obj)->value(); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_ObjectEquals) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 2); |