diff options
author | 2023-03-02 19:05:21 -0800 | |
---|---|---|
committer | 2023-03-02 19:05:21 -0800 | |
commit | f7d6cc0ddf8aa75a8c7b6fb23a787c52648f2e8a (patch) | |
tree | d29a4cae43dd8fbb36e67a82f929430735af4b5b /test/snippets/code-simplification-neql-define.js | |
parent | 38d6cd6d15f2745d02fc757cc299691d82c7b4f5 (diff) | |
parent | 9388b3f8257bc2e580deaece4cd2677928104fc6 (diff) | |
download | bun-f7d6cc0ddf8aa75a8c7b6fb23a787c52648f2e8a.tar.gz bun-f7d6cc0ddf8aa75a8c7b6fb23a787c52648f2e8a.tar.zst bun-f7d6cc0ddf8aa75a8c7b6fb23a787c52648f2e8a.zip |
Merge branch 'main' into ciro/spawn-abort-signal-rebased
Diffstat (limited to 'test/snippets/code-simplification-neql-define.js')
-rw-r--r-- | test/snippets/code-simplification-neql-define.js | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/test/snippets/code-simplification-neql-define.js b/test/snippets/code-simplification-neql-define.js index c7676dc9b..bd7ab9207 100644 --- a/test/snippets/code-simplification-neql-define.js +++ b/test/snippets/code-simplification-neql-define.js @@ -2,7 +2,7 @@ var testFailed = false; const invariant = () => { testFailed = true; }; -var $$m = (arg) => { +var $$m = arg => { var module = { exports: {} }, exports = module.exports; return arg(module, exports); @@ -12,31 +12,19 @@ var size = 100, export var $f332019d = $$m( { - "relay-runtime/lib/network/RelayQueryResponseCache.js": ( - module, - exports, - ) => { + "relay-runtime/lib/network/RelayQueryResponseCache.js": (module, exports) => { var RelayQueryResponseCache = function () { var foo = function RelayQueryResponseCache(_ref) { var size = _ref.size, ttl = _ref.ttl; !(size > 0) ? process.env.NODE_ENV !== "production" - ? invariant( - false, - "RelayQueryResponseCache: Expected the max cache size to be > 0, got " + - "`%s`.", - size, - ) + ? invariant(false, "RelayQueryResponseCache: Expected the max cache size to be > 0, got " + "`%s`.", size) : invariant(false) : void 0; !(ttl > 0) ? process.env.NODE_ENV !== "production" - ? invariant( - false, - "RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.", - ttl, - ) + ? invariant(false, "RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.", ttl) : invariant(false) : void 0; }; |