mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-11 14:46:37 +03:00
Fix reactFailOnUnsupportedSideEffects (#2532)
Summary: Release notes: none Fixes a bug where `reactFailOnUnsupportedSideEffects` should evaluate to `false` if passed as false. Also fixes a lint issue on `master`. Pull Request resolved: https://github.com/facebook/prepack/pull/2532 Differential Revision: D9662462 Pulled By: trueadm fbshipit-source-id: 1ffeea55e55a2bde9f1d44c64ac85d7e1b1727cf
This commit is contained in:
parent
553d926009
commit
4f0bce54c9
@ -201,7 +201,7 @@ export class Reconciler {
|
||||
if (this.realm.react.failOnUnsupportedSideEffects) {
|
||||
handleReportedSideEffect(throwUnsupportedSideEffectError, sideEffectType, binding, expressionLocation);
|
||||
}
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
} finally {
|
||||
|
@ -299,7 +299,7 @@ export class Realm {
|
||||
emptyArray: undefined,
|
||||
emptyObject: undefined,
|
||||
enabled: opts.reactEnabled || false,
|
||||
failOnUnsupportedSideEffects: opts.reactFailOnUnsupportedSideEffects || true,
|
||||
failOnUnsupportedSideEffects: opts.reactFailOnUnsupportedSideEffects === false ? false : true,
|
||||
hoistableFunctions: new WeakMap(),
|
||||
hoistableReactElements: new WeakMap(),
|
||||
noopFunction: undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user