diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2019-11-10 13:56:53 +0100 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2019-11-10 13:56:53 +0100 |
commit | 1dd3124a9770e11b6684e5dd1e6bc15a0aa3bc67 (patch) | |
tree | 87a171383266dd1f64196589af081bc2f8e497c3 /tests/examplefiles/es6.js | |
parent | f1c080e184dc1bbc36eaa7cd729ff3a499de568a (diff) | |
download | pygments-master.tar.gz |
Diffstat (limited to 'tests/examplefiles/es6.js')
-rw-r--r-- | tests/examplefiles/es6.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/examplefiles/es6.js b/tests/examplefiles/es6.js deleted file mode 100644 index 79bfd3e6..00000000 --- a/tests/examplefiles/es6.js +++ /dev/null @@ -1,46 +0,0 @@ -// Most examples from https://github.com/rse/es6-features under MIT license -const PI = 3.141593; - -let callbacks = []; - -odds = evens.map(v => v + 1); - -nums.forEach(v => { - if (v % 5 === 0) - fives.push(v); -}) - -function f (x, y, ...a) { - return (x + y) * a.length; -} - -var params = [ "hello", true, 7 ]; -var other = [ 1, 2, ...params ]; // [ 1, 2, "hello", true, 7 ] -f(1, 2, ...params) === 9; - -var str = "foo"; -var chars = [ ...str ]; // [ "f", "o", "o" ] - -var customer = { name: "Foo" }; -var card = { amount: 7, product: "Bar", unitprice: 42 }; -message = `Hello ${customer.name}, -want to buy ${card.amount} ${card.product} for -a total of ${card.amount * card.unitprice} bucks?`; - -0b111110111 === 503; -0o767 === 503; - -for (let codepoint of "𠮷") console.log(codepoint); - -function* (); -*function(); -yield; - -export class Node { -} - -isFinite(); -isNaN(); -isSafeInteger(); -x = new Promise(...a); -x = new Proxy(...a); |