mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: fix various global objects constructor length (#8373)
This commit changes various Web APIs constructors to match their signature in the browser.
This commit is contained in:
parent
3a0ebff641
commit
3d65e57d7c
8 changed files with 30 additions and 12 deletions
|
@ -83,10 +83,12 @@ unitTest(function performanceMeasure() {
|
|||
|
||||
unitTest(function performanceIllegalConstructor() {
|
||||
assertThrows(() => new Performance(), TypeError, "Illegal constructor.");
|
||||
assertEquals(Performance.length, 0);
|
||||
});
|
||||
|
||||
unitTest(function performanceEntryIllegalConstructor() {
|
||||
assertThrows(() => new PerformanceEntry(), TypeError, "Illegal constructor.");
|
||||
assertEquals(PerformanceEntry.length, 0);
|
||||
});
|
||||
|
||||
unitTest(function performanceMeasureIllegalConstructor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue