Commit a9fd5668 authored by Matthew Gaudet's avatar Matthew Gaudet
Browse files

Bug 1895959 - Remove Un-needed lookup of promise constructor in StartDynamicModuleImport r=jonco

parent c99a252d
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -2436,11 +2436,6 @@ static bool EvaluateDynamicImportOptions(
JSObject* js::StartDynamicModuleImport(JSContext* cx, HandleScript script,
                                       HandleValue specifierArg,
                                       HandleValue optionsArg) {
  RootedObject promiseConstructor(cx, JS::GetPromiseConstructor(cx));
  if (!promiseConstructor) {
    return nullptr;
  }

  RootedObject promiseObject(cx, JS::NewPromiseObject(cx, nullptr));
  if (!promiseObject) {
    return nullptr;