Changeset 222895 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Oct 4, 2017, 8:57:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r222827 r222895 1661 1661 static JSInternalPromise* moduleLoaderResolve(JSGlobalObject*, ExecState*, JSModuleLoader*, JSValue, JSValue, JSValue); 1662 1662 static JSInternalPromise* moduleLoaderFetch(JSGlobalObject*, ExecState*, JSModuleLoader*, JSValue, JSValue); 1663 static JSObject* moduleLoaderCreateImportMetaProperties(JSGlobalObject*, ExecState*, JSModuleLoader*, JSValue, JSModuleRecord*, JSValue); 1663 1664 }; 1664 1665 … … 1674 1675 &moduleLoaderFetch, 1675 1676 nullptr, // moduleLoaderInstantiate 1677 &moduleLoaderCreateImportMetaProperties, 1676 1678 nullptr, // moduleLoaderEvaluate 1677 1679 nullptr, // promiseRejectionTracker … … 2007 2009 } 2008 2010 2011 JSObject* GlobalObject::moduleLoaderCreateImportMetaProperties(JSGlobalObject* globalObject, ExecState* exec, JSModuleLoader*, JSValue key, JSModuleRecord*, JSValue) 2012 { 2013 VM& vm = exec->vm(); 2014 auto scope = DECLARE_THROW_SCOPE(vm); 2015 2016 JSObject* metaProperties = constructEmptyObject(exec, globalObject->nullPrototypeObjectStructure()); 2017 RETURN_IF_EXCEPTION(scope, nullptr); 2018 2019 metaProperties->putDirect(vm, Identifier::fromString(&vm, "filename"), key); 2020 RETURN_IF_EXCEPTION(scope, nullptr); 2021 2022 return metaProperties; 2023 } 2009 2024 2010 2025 static EncodedJSValue printInternal(ExecState* exec, FILE* out)
Note:
See TracChangeset
for help on using the changeset viewer.