Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 7d0aa2d

Browse files
Sapan Bhatiafacebook-github-bot
Sapan Bhatia
authored andcommitted
Fixed duplicate uses of PP0038 (#2445)
Summary: Fixes #2439. Pull Request resolved: #2445 Differential Revision: D9397648 Pulled By: sb98052 fbshipit-source-id: 5d74d47efd0e1f5ea29ec877f0747119a0ed9694
1 parent 6f7161e commit 7d0aa2d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/intrinsics/prepack/global.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export default function(realm: Realm): void {
335335
let error = new CompilerDiagnostic(
336336
`Assumed condition cannot hold`,
337337
realm.currentLocation,
338-
"PP0038",
338+
"PP0040",
339339
"FatalError"
340340
);
341341
realm.handleError(error);

src/serializer/ResidualHeapSerializer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ export class ResidualHeapSerializer {
12691269
let error = new CompilerDiagnostic(
12701270
"InstantRender does not yet support cyclical arrays or objects",
12711271
array.expressionLocation,
1272-
"PP0038",
1272+
"PP0039",
12731273
"FatalError"
12741274
);
12751275
this.realm.handleError(error);
@@ -1774,7 +1774,7 @@ export class ResidualHeapSerializer {
17741774
let error = new CompilerDiagnostic(
17751775
"InstantRender does not yet support cyclical arays or objects",
17761776
val.expressionLocation,
1777-
"PP0038",
1777+
"PP0039",
17781778
"FatalError"
17791779
);
17801780
this.realm.handleError(error);

test/error-handler/EmptyBuiltInArrayCycle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// instant render
2-
// expected errors: [{"location":{"start":{"line":5,"column":10},"end":{"line":5,"column":12},"source":"test/error-handler/EmptyBuiltInArrayCycle.js"},"severity":"FatalError","errorCode":"PP0038"}]
2+
// expected errors: [{"location":{"start":{"line":5,"column":10},"end":{"line":5,"column":12},"source":"test/error-handler/EmptyBuiltInArrayCycle.js"},"severity":"FatalError","errorCode":"PP0039"}]
33

44
(function() {
55
var a = [];

test/error-handler/EmptyBuiltInPropsCycle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// instant render
2-
// expected errors: [{"location":{"start":{"line":5,"column":10},"end":{"line":5,"column":12},"source":"test/error-handler/EmptyBuiltInPropsCycle.js"},"severity":"FatalError","errorCode":"PP0038"}]
2+
// expected errors: [{"location":{"start":{"line":5,"column":10},"end":{"line":5,"column":12},"source":"test/error-handler/EmptyBuiltInPropsCycle.js"},"severity":"FatalError","errorCode":"PP0039"}]
33

44
(function() {
55
var a = {};

0 commit comments

Comments
 (0)