Avoid last-argument hugging for number-only arrays (#10517)
This commit is contained in:
1 parent
169faf39ac
commit
2740ea6ee8
5 files changed
+94
-22
No files matched your search
@@ -404,6 +404,30 @@ const els = items.map((item) => (
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`number-only-array.js format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["babel", "flow"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
instantiate(game, [
|
||||
transform([-0.7, 0.5, 0]),
|
||||
render_colored_diffuse(game.MaterialDiffuse, game.Meshes["monkey_flat"], [1, 1, 0.3, 1]),
|
||||
]);
|
||||
|
||||
=====================================output=====================================
|
||||
instantiate(game, [
|
||||
transform([-0.7, 0.5, 0]),
|
||||
render_colored_diffuse(
|
||||
game.MaterialDiffuse,
|
||||
game.Meshes["monkey_flat"],
|
||||
[1, 1, 0.3, 1]
|
||||
),
|
||||
]);
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`object.js format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["babel", "flow"]
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
instantiate(game, [
|
||||
transform([-0.7, 0.5, 0]),
|
||||
render_colored_diffuse(game.MaterialDiffuse, game.Meshes["monkey_flat"], [1, 1, 0.3, 1]),
|
||||
]);
|
||||
Reference in new issue
Block a user