Ignore:
Timestamp:
May 4, 2016, 1:15:26 PM (9 years ago)
Author:
[email protected]
Message:

Unreviewed, reland r200149 since the rollout had inconclusive PLT AB testing results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r200149 r200426  
    568568static EncodedJSValue JSC_HOST_CALL functionPrint(ExecState*);
    569569static EncodedJSValue JSC_HOST_CALL functionDebug(ExecState*);
     570static EncodedJSValue JSC_HOST_CALL functionDataLogValue(ExecState*);
    570571static EncodedJSValue JSC_HOST_CALL functionDescribe(ExecState*);
    571572static EncodedJSValue JSC_HOST_CALL functionDescribeArray(ExecState*);
     
    739740    {
    740741        Base::finishCreation(vm);
    741        
     742
     743        addFunction(vm, "dataLogValue", functionDataLogValue, 1);
    742744        addFunction(vm, "debug", functionDebug, 1);
    743745        addFunction(vm, "describe", functionDescribe, 1);
     
    843845
    844846        putDirect(vm, Identifier::fromString(globalExec(), "console"), jsUndefined());
     847        putDirect(vm, vm.propertyNames->printPrivateName, JSFunction::create(vm, this, 1, vm.propertyNames->printPrivateName.string(), functionPrint));
    845848    }
    846849
     
    11421145}
    11431146
     1147EncodedJSValue JSC_HOST_CALL functionDataLogValue(ExecState* exec)
     1148{
     1149    dataLog("value is: ", exec->argument(0), "\n");
     1150    return JSValue::encode(jsUndefined());
     1151}
     1152
    11441153EncodedJSValue JSC_HOST_CALL functionDescribe(ExecState* exec)
    11451154{
Note: See TracChangeset for help on using the changeset viewer.