ecma

How do I find the latest Typescript target support for any version of node?

被刻印的时光 ゝ 提交于 2019-12-05 16:00:53
Assuming any version of Node, how do I find the corresponding Typescript Compiler Option for target that gives most the functionality? I want to remove the guest work. Specify ECMAScript target version: "ES3" (default), "ES5", "ES6"/"ES2015", "ES2016", "ES2017" or "ESNext". I run different versions of node, and I want to know when is the minimum node version to enable the different TSC targets. One method to accomplish this is to check out the site http://node.green . Find your version of node, and scroll down until the support for node features stops. So, for example, if you're using 10.3

Why does JSON encode UTF-16 surrogate pairs instead of Unicode code points directly?

谁都会走 提交于 2019-12-04 04:19:42
问题 To escape a code point that is not in the Basic Multilingual Plane, the character is represented as a twelve-character sequence, encoding the UTF-16 surrogate pair. So for example, a string containing only the G clef character (U+1D11E) may be represented as "\uD834\uDD1E" . ECMA-404: The JSON Data Interchange Format I believe that there is no need to encode this character at all, so it could be represented directly as "𝄞" . However, should one wish to encode it, it must, per spec, be encoded

Why is there no ISO or ECMA standardization for C# later than 2.0?

回眸只為那壹抹淺笑 提交于 2019-12-04 04:06:15
I have started learning C# and was looking for a standard specification, but found that C# versions greater than 2.0 were not standardized by ISO or ECMA (or so I gathered from Wikipedia). Is there any reason for this? Because writing, reviewing, validating, publishing, processing feedback, revising, re-publishing etc complex specification documents takes significant time and effort, which is a finite resource - and the demand for an ISO / ECMA version of the specification hasn't been sufficient to prompt Microsoft into investing that time. The non-Microsoft compiler authors (Mono etc) seem to

Why is `(foo) = “bar”` legal in JavaScript?

喜欢而已 提交于 2019-12-03 05:26:08
问题 In Node.js's REPL (tested in SpiderMonkey as well) the sequence var foo = null; (foo) = "bar"; is valid, with foo subsequently equal to "bar" as opposed to null . This seems counterintuitive because one would think the parenthesis would at least dereference bar and throw Invalid left-hand side in assignment` . Understandably, when you do anything interesting it does fail in aforementioned way. (foo, bar) = 4 (true ? bar : foo) = 4 According to ECMA-262 on LeftHandExpressions (so far as I can

V8

与世无争的帅哥 提交于 2019-12-02 21:47:26
Introduction 介绍 Welcome to the developer documentation for V8. V8 is Google's open source, high performance JavaScript engine. It is written in C++ and is used in Google Chrome , Google's open source browser. 欢迎来到 V8 的 开发者文档。 V8 是谷歌开源,高性能的 JS 引擎。它使用 C++ 编写并且被用于 Chrome ,谷歌的开源浏览器。 This documentation is aimed at C++ developers who want to use V8 in their applications, as well as anyone interested in V8's design and performance. This document introduces you to V8, while the remaining documentation shows you how to use V8 in your code and describes some of its design details, as well as providing a

Why is `(foo) = “bar”` legal in JavaScript?

风格不统一 提交于 2019-12-02 18:43:38
In Node.js's REPL (tested in SpiderMonkey as well) the sequence var foo = null; (foo) = "bar"; is valid, with foo subsequently equal to "bar" as opposed to null . This seems counterintuitive because one would think the parenthesis would at least dereference bar and throw Invalid left-hand side in assignment` . Understandably, when you do anything interesting it does fail in aforementioned way. (foo, bar) = 4 (true ? bar : foo) = 4 According to ECMA-262 on LeftHandExpressions (so far as I can interpret) are no valid non-terminals that would lead to a parenthetical being accepted. Is there

NFC standards (NFC Forum, ISO/IEC, ECMA

女生的网名这么多〃 提交于 2019-12-02 16:22:31
I am often being asked about standards, the NFC is based on. I summarized my knowledge in the text below. I hope it can be an answer to such questions. Please feel free to correct it by posting comments and replies - I will include it into my text. Since NFC is based on RFID, it is often seen as RFID extension, its form or subset. It is correct because many existing standards from RFID were adopted in the NFC. The NFC base standard for physical layer is NFCIP-1 (ISO 18092 or ECMA 340) - it standardizes communication between two NFC devices. The RF layer use in the NFCIP-1 is directly inherited

Why String.prototype.substr() seems to be deprecated?

こ雲淡風輕ζ 提交于 2019-12-01 16:46:25
It is mentionned on the ECMAScript standard here that : ... These features are not considered part of the core ECMAScript language. Programmers should not use or assume the existence of these features and behaviours when writing new ECMAScript code. ECMAScript implementations are discouraged from implementing these features unless the implementation is part of a web browser or is required to run the same legacy ECMAScript code that web browsers encounter. There is also a red warning on MDN : String.prototype.substr() MDN doc Does anyone know why (ECMAScript standard say that) programmers

Why String.prototype.substr() seems to be deprecated?

天大地大妈咪最大 提交于 2019-12-01 16:45:00
问题 It is mentionned on the ECMAScript standard here that : ... These features are not considered part of the core ECMAScript language. Programmers should not use or assume the existence of these features and behaviours when writing new ECMAScript code. ECMAScript implementations are discouraged from implementing these features unless the implementation is part of a web browser or is required to run the same legacy ECMAScript code that web browsers encounter. There is also a red warning on MDN :

V8

时光总嘲笑我的痴心妄想 提交于 2019-12-01 13:45:49
Getting Started 新手导读 This document introduces some key V8 concepts and provides a hello world example to get you started with V8 code. 这篇文章介绍一些关于 V8 的概念的关键,以及一个小例子 “ Hello World ” 来帮助你使用 V8 的代码。 Contents 目录 阅读对象 Hello World 运行例子 Audience 阅读对象 This document is intended for C++ programmers who want to embed the V8 JavaScript engine within a C++ application. 这篇文档是面向那些想要嵌入 V8 JS 引擎到其 C++ 程序中的 C++ 程序员。 Hello World Let's look at a Hello World example that takes a JavaScript statement as a string argument, executes it as JavaScript code, and prints the result to standard out. 让我们来看看在 Hello World 例子中