assemblyscript
Advanced tools
Comparing version 0.23.1 to 0.24.0
export const importmap = { | ||
"imports": { | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.23.1/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.23.1/dist/asc.js", | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.24.0/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.24.0/dist/asc.js", | ||
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@110.0.0-nightly.20221105/index.js", | ||
@@ -6,0 +6,0 @@ "long": "https://cdn.jsdelivr.net/npm/long@5.2.0/index.js" |
{ | ||
"imports": { | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.23.1/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.23.1/dist/asc.js", | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.24.0/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.24.0/dist/asc.js", | ||
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@110.0.0-nightly.20221105/index.js", | ||
@@ -6,0 +6,0 @@ "long": "https://cdn.jsdelivr.net/npm/long@5.2.0/index.js" |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.23.1", | ||
"version": "0.24.0", | ||
"author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>", | ||
@@ -14,0 +14,0 @@ "license": "Apache-2.0", |
@@ -1,2 +0,2 @@ | ||
export class Object { | ||
export abstract class Object { | ||
static is<T>(x: T, y: T): bool { | ||
@@ -22,2 +22,16 @@ if (isFloat<T>()) { | ||
} | ||
// TODO: Wrapper classes like `Function<T>` override the `this` type of | ||
// `toString`, which is covariant and hence fails to overload. Wrapper classes | ||
// might need a different mechanism to indicate such special `this` types. | ||
// toString(): string { | ||
// return "[object Object]"; | ||
// } | ||
} | ||
// TODO: The types `Object` and `object` differ in TypeScript, in that the | ||
// latter indicates any non-primitive type, not including `string` for example. | ||
// The `object` type hence remains reserved for now, also to potentially address | ||
// the above `toString` TODO in alternative ways. | ||
// @ts-ignore: nolib | ||
// export type object = Object; |
@@ -120,2 +120,3 @@ import { BLOCK, BLOCK_OVERHEAD, OBJECT_OVERHEAD, OBJECT_MAXSIZE, TOTAL_OVERHEAD, DEBUG, TRACE, RTRACE, PROFILE } from "./common"; | ||
let rtId = this.rtId; | ||
// 0: Object, 1: ArrayBuffer, 2: String | ||
return rtId <= idof<string>() || (__typeinfo(rtId) & TypeinfoFlags.POINTERFREE) != 0; | ||
@@ -122,0 +123,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7041948
53921