Skip to content

Commit 69e1295

Browse files
dmnsgnjwagner
authored andcommitted
fix: #__PURE__ comment position
1 parent 0c81072 commit 69e1295

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

simplex-noise.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ Better rank ordering method by Stefan Gustavson in 2012.
2828
*/
2929

3030

31-
// these #__PURE__ comments help uglifyjs with dead code removal
32-
//
33-
const F2 = /*#__PURE__*/ 0.5 * (Math.sqrt(3.0) - 1.0);
34-
const G2 = /*#__PURE__*/ (3.0 - Math.sqrt(3.0)) / 6.0;
31+
// these __PURE__ comments help uglifyjs with dead code removal
32+
//
33+
const F2 = 0.5 * (/*#__PURE__*/Math.sqrt(3.0) - 1.0);
34+
const G2 = (3.0 - /*#__PURE__*/Math.sqrt(3.0)) / 6.0;
3535
const F3 = 1.0 / 3.0;
3636
const G3 = 1.0 / 6.0;
37-
const F4 = /*#__PURE__*/ (Math.sqrt(5.0) - 1.0) / 4.0;
38-
const G4 = /*#__PURE__*/ (5.0 - Math.sqrt(5.0)) / 20.0;
37+
const F4 = (/*#__PURE__*/Math.sqrt(5.0) - 1.0) / 4.0;
38+
const G4 = (5.0 - /*#__PURE__*/Math.sqrt(5.0)) / 20.0;
3939

4040
// I'm really not sure why this | 0 (basically a coercion to int)
4141
// is making this faster but I get ~5 million ops/sec more on the

0 commit comments

Comments
 (0)