Skip to content

Commit d2a2dd2

Browse files
committed
Merged PR 146829: Fix build break caused by the new function JsIsConstructor
The implementation of JsIsConstructor was using Js::RecyclableObject::FromVar, while the pattern has changed and Js::VarTo<> should be used instead.
1 parent 8e2aae3 commit d2a2dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Jsrt/Jsrt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6210,7 +6210,7 @@ CHAKRA_API JsIsConstructor(_In_ JsValueRef object, _Out_ bool *isConstructor)
62106210
VALIDATE_INCOMING_OBJECT(object, scriptContext);
62116211
PARAM_NOT_NULL(isConstructor);
62126212

6213-
Js::RecyclableObject * instance = Js::RecyclableObject::FromVar(object);
6213+
Js::RecyclableObject * instance = Js::VarTo<Js::RecyclableObject>(object);
62146214
AssertMsg(scriptContext->GetThreadContext()->IsScriptActive(), "Caller is expected to be under ContextAPIWrapper!");
62156215

62166216
*isConstructor = Js::JavascriptOperators::IsConstructor(instance);

0 commit comments

Comments
 (0)