Skip to content

Commit

Permalink
Remove missing HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION
Browse files Browse the repository at this point in the history
Summary:
This is a follow-up of D23383872 where I forgot to remove the ifndef guard of
String.cpp and RegExp.cpp and related config in hermes.bzl

Reviewed By: avp

Differential Revision: D23593560

fbshipit-source-id: f88a845c25ff17f6a54bc80c2854cd9b36a101e1
  • Loading branch information
Huxpro authored and facebook-github-bot committed Sep 10, 2020
1 parent 14685c8 commit f2cd4d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions lib/VM/JSLib/RegExp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ Handle<JSObject> createRegExpConstructor(Runtime *runtime) {
defineGetter(cons, Predefined::dollarPlus, regExpLastParenGetter);
defineGetter(cons, Predefined::lastParen, regExpLastParenGetter);

#ifndef HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION
defineMethod(
runtime,
proto,
Expand Down Expand Up @@ -182,7 +181,6 @@ Handle<JSObject> createRegExpConstructor(Runtime *runtime) {
dpf);

defineGetter(proto, Predefined::flags, regExpFlagsGetter);
#endif // HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION

return cons;
}
Expand Down Expand Up @@ -1103,7 +1101,6 @@ regExpPrototypeSymbolMatchAll(void *, Runtime *runtime, NativeArgs args) {
.getHermesValue();
}

#ifndef HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION
// ES6 21.2.5.14
// Note there is no requirement that 'this' be a RegExp object.
CallResult<HermesValue>
Expand Down Expand Up @@ -1984,7 +1981,6 @@ regExpFlagsGetter(void *ctx, Runtime *runtime, NativeArgs args) {
}
return StringPrimitive::create(runtime, result);
}
#endif // HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION

} // namespace vm
} // namespace hermes
5 changes: 0 additions & 5 deletions lib/VM/JSLib/String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ Handle<JSObject> createStringConstructor(Runtime *runtime) {
ctx,
stringPrototypeMatchAll,
1);

#ifndef HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION
defineMethod(
runtime,
stringPrototype,
Expand Down Expand Up @@ -318,7 +316,6 @@ Handle<JSObject> createStringConstructor(Runtime *runtime) {
(void *)true,
stringPrototypeIncludesOrStartsWith,
1);
#endif // HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION

return cons;
}
Expand Down Expand Up @@ -1344,7 +1341,6 @@ stringPrototypeMatchAll(void *, Runtime *runtime, NativeArgs args) {
.toCallResultHermesValue();
}

#ifndef HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION
CallResult<HermesValue>
stringPrototypeMatch(void *, Runtime *runtime, NativeArgs args) {
// 1. Let O be RequireObjectCoercible(this value).
Expand Down Expand Up @@ -2312,7 +2308,6 @@ CallResult<HermesValue>
stringPrototypeLastIndexOf(void *, Runtime *runtime, NativeArgs args) {
return stringDirectedIndexOf(runtime, args, true);
}
#endif // HERMESVM_USE_JS_LIBRARY_IMPLEMENTATION

} // namespace vm
} // namespace hermes

0 comments on commit f2cd4d2

Please sign in to comment.