Bartek Iwańczuk
|
b688b61036
|
refactor(ext/web): use relative specifiers (#23024)
|
2024-03-22 17:21:05 +01:00 |
|
Leo Kettmeir
|
1007358768
|
refactor: move ImageData to web extension (#22295)
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
|
2024-02-07 01:11:15 +01:00 |
|
Leo Kettmeir
|
8f76762793
|
feat(web): ImageBitmap (#21898)
|
2024-01-22 12:08:01 +01:00 |
|
Kenta Moriuchi
|
515a34b4de
|
refactor: use core.ensureFastOps() (#21888)
|
2024-01-10 15:37:25 -07:00 |
|
Kenta Moriuchi
|
b2cd254c35
|
fix: strict type check for cross realms (#21669)
Deno v1.39 introduces `vm.runInNewContext`. This may cause problems when
using `Object.prototype.isPrototypeOf` to check built-in types.
```js
import vm from "node:vm";
const err = new Error();
const crossErr = vm.runInNewContext(`new Error()`);
console.assert( !(crossErr instanceof Error) );
console.assert( Object.getPrototypeOf(err) !== Object.getPrototypeOf(crossErr) );
```
This PR changes to check using internal slots solves them.
---
current:
```
> import vm from "node:vm";
undefined
> vm.runInNewContext(`new Error("message")`)
Error {}
> vm.runInNewContext(`new Date("2018-12-10T02:26:59.002Z")`)
Date {}
```
this PR:
```
> import vm from "node:vm";
undefined
> vm.runInNewContext(`new Error("message")`)
Error: message
at <anonymous>:1:1
> vm.runInNewContext(`new Date("2018-12-10T02:26:59.002Z")`)
2018-12-10T02:26:59.002Z
```
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
|
2024-01-04 09:42:38 +05:30 |
|
David Sherret
|
7e72f3af61
|
chore: update copyright to 2024 (#21753)
|
2024-01-01 19:58:21 +00:00 |
|
Jamie
|
8c0fb9003d
|
feat(ext/web): add ImageData Web API (#21183)
Fixes #19288
Adds the `ImageData` Web API.
This would be beneficial to projects using `ImageData` as a convenient
transport layer for pixel data. This is common in Web Assembly projects
that manipulate images. Having this global available in Deno would
improve compatibility of existing JS libraries.
**References**
- [MDN ImageData Web
API](https://developer.mozilla.org/en-US/docs/Web/API/ImageData)
- [whatwg HTML Standard Canvas
Spec](https://html.spec.whatwg.org/multipage/canvas.html#pixel-manipulation)
|
2023-12-06 14:20:28 +01:00 |
|