Ignore:
Timestamp:
Oct 7, 2013, 8:29:05 PM (12 years ago)
Author:
[email protected]
Message:

Pass VM instead of ExecState to JSNotAnObject constructor.
<https://webkit.org/b/122474>

Reviewed by Sam Weinig.

JSNotAnObject was only using the ExecState to find the VM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSCJSValue.cpp

    r156910 r157082  
    7575
    7676    ASSERT(isUndefinedOrNull());
    77     exec->vm().throwException(exec, createNotAnObjectError(exec, *this));
    78     return JSNotAnObject::create(exec);
     77    VM& vm = exec->vm();
     78    vm.throwException(exec, createNotAnObjectError(exec, *this));
     79    return JSNotAnObject::create(vm);
    7980}
    8081
     
    107108
    108109    ASSERT(isUndefinedOrNull());
    109     exec->vm().throwException(exec, createNotAnObjectError(exec, *this));
    110     return JSNotAnObject::create(exec);
     110    VM& vm = exec->vm();
     111    vm.throwException(exec, createNotAnObjectError(exec, *this));
     112    return JSNotAnObject::create(vm);
    111113}
    112114
Note: See TracChangeset for help on using the changeset viewer.