Ignore:
Timestamp:
Mar 29, 2011, 9:02:31 AM (14 years ago)
Author:
[email protected]
Message:

2011-03-29 Oliver Hunt <[email protected]>

Reviewed by Eric Seidel.

REGRESSION(r82173): Causes assertion and test failures in run-javascriptcore-tests on Windows (Requested by aroben on #webkit).
https://bugs.webkit.org/show_bug.cgi?id=57333

constructDate now takes the global object explicitly as it may be called
by functions other than the constructor itself.

  • API/JSObjectRef.cpp: (JSObjectMakeDate):
  • runtime/DateConstructor.cpp: (JSC::constructDate): (JSC::constructWithDateConstructor):
  • runtime/DateConstructor.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSObjectRef.cpp

    r82173 r82261  
    169169        argList.append(toJS(exec, arguments[i]));
    170170
    171     JSObject* result = constructDate(exec, argList);
     171    JSObject* result = constructDate(exec, exec->lexicalGlobalObject(), argList);
    172172    if (exec->hadException()) {
    173173        if (exception)
Note: See TracChangeset for help on using the changeset viewer.