|
1 | | -// currently experimental guard with version of NODE_MAJOR_VERSION that it is |
2 | | -// released in once it is no longer experimental |
| 1 | +// Currently experimental guard with NODE_MAJOR_VERISION in which it was |
| 2 | +// released. Once it is no longer experimental guard with the NAPI_VERSION |
| 3 | +// in which it is released instead. |
3 | 4 | #if (NODE_MAJOR_VERSION >= 10) |
4 | 5 | #define NAPI_EXPERIMENTAL |
5 | 6 | #endif |
@@ -69,8 +70,9 @@ Value CreateTypedArray(const CallbackInfo& info) { |
69 | 70 | NAPI_TYPEDARRAY_NEW(Float64Array, info.Env(), length, napi_float64_array) : |
70 | 71 | NAPI_TYPEDARRAY_NEW_BUFFER(Float64Array, info.Env(), length, buffer, bufferOffset, |
71 | 72 | napi_float64_array); |
72 | | -// currently experimental guard with version of NODE_MAJOR_VERSION that it is |
73 | | -// released in once it is no longer experimental |
| 73 | +// Currently experimental guard with NODE_MAJOR_VERISION in which it was |
| 74 | +// released. Once it is no longer experimental guard with the NAPI_VERSION |
| 75 | +// in which it is released instead. |
74 | 76 | #if (NODE_MAJOR_VERSION >= 10) |
75 | 77 | } else if (arrayType == "bigint64") { |
76 | 78 | return buffer.IsUndefined() ? |
@@ -105,8 +107,9 @@ Value GetTypedArrayType(const CallbackInfo& info) { |
105 | 107 | case napi_uint32_array: return String::New(info.Env(), "uint32"); |
106 | 108 | case napi_float32_array: return String::New(info.Env(), "float32"); |
107 | 109 | case napi_float64_array: return String::New(info.Env(), "float64"); |
108 | | -// currently experimental guard with version of NODE_MAJOR_VERSION that it is |
109 | | -// released in once it is no longer experimental |
| 110 | +// Currently experimental guard with NODE_MAJOR_VERISION in which it was |
| 111 | +// released. Once it is no longer experimental guard with the NAPI_VERSION |
| 112 | +// in which it is released instead. |
110 | 113 | #if (NODE_MAJOR_VERSION >= 10) |
111 | 114 | case napi_bigint64_array: return String::New(info.Env(), "bigint64"); |
112 | 115 | case napi_biguint64_array: return String::New(info.Env(), "biguint64"); |
@@ -147,8 +150,9 @@ Value GetTypedArrayElement(const CallbackInfo& info) { |
147 | 150 | return Number::New(info.Env(), array.As<Float32Array>()[index]); |
148 | 151 | case napi_float64_array: |
149 | 152 | return Number::New(info.Env(), array.As<Float64Array>()[index]); |
150 | | -// currently experimental guard with version of NODE_MAJOR_VERSION that it is |
151 | | -// released in once it is no longer experimental |
| 153 | +// Currently experimental guard with NODE_MAJOR_VERISION in which it was |
| 154 | +// released. Once it is no longer experimental guard with the NAPI_VERSION |
| 155 | +// in which it is released instead. |
152 | 156 | #if (NODE_MAJOR_VERSION >= 10) |
153 | 157 | case napi_bigint64_array: |
154 | 158 | return BigInt::New(info.Env(), array.As<BigInt64Array>()[index]); |
@@ -193,8 +197,9 @@ void SetTypedArrayElement(const CallbackInfo& info) { |
193 | 197 | case napi_float64_array: |
194 | 198 | array.As<Float64Array>()[index] = value.DoubleValue(); |
195 | 199 | break; |
196 | | -// currently experimental guard with version of NODE_MAJOR_VERSION that it is |
197 | | -// released in once it is no longer experimental |
| 200 | +// Currently experimental guard with NODE_MAJOR_VERISION in which it was |
| 201 | +// released. Once it is no longer experimental guard with the NAPI_VERSION |
| 202 | +// in which it is released instead. |
198 | 203 | #if (NODE_MAJOR_VERSION >= 10) |
199 | 204 | case napi_bigint64_array: { |
200 | 205 | bool lossless; |
|
0 commit comments