mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 21:28:43 +08:00
Move and rename files. NOAUTOREVERT=true NOPRESUBMIT=true NOTREECHECKS=true Bug: 768828 TBR=darin@chromium.org NOTRY=true Change-Id: I66d3b155808bc5bdbf237b80208e1e552bcf7f28 Reviewed-on: https://chromium-review.googlesource.com/1001153 Reviewed-by: Blink Reformat <blink-reformat@chromium.org> Commit-Queue: Blink Reformat <blink-reformat@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#549061} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1
138 lines
1.8 KiB
JavaScript
138 lines
1.8 KiB
JavaScript
/**
|
|
* @constructor
|
|
*/
|
|
Base = function() {}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
DerivedNoProto = function() {}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
DerivedBadProto = function() {}
|
|
|
|
DerivedBadProto.prototype = {
|
|
__proto__: Base
|
|
}
|
|
|
|
/**
|
|
* @interface
|
|
*/
|
|
InterfaceWithProto = function() {}
|
|
|
|
InterfaceWithProto.prototype = {
|
|
__proto__: Base.prototype
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
ProtoNoExtends = function() {}
|
|
|
|
ProtoNoExtends.prototype = {
|
|
__proto__: Base.prototype
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
ProtoNotSameAsExtends = function() {}
|
|
|
|
ProtoNotSameAsExtends.prototype = {
|
|
__proto__: Object.prototype
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
ProtoNotObjectLiteral = function() {}
|
|
|
|
ProtoNotObjectLiteral.prototype = Object;
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
DerivedNoSuperCall = function() {
|
|
}
|
|
|
|
DerivedNoSuperCall.prototype = {
|
|
__proto__: Base.prototype
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
DerivedBadSuperCall = function() {
|
|
Base.call(1);
|
|
}
|
|
|
|
DerivedBadSuperCall.prototype = {
|
|
__proto__: Base.prototype
|
|
}
|
|
|
|
/**
|
|
* @extends {Base}
|
|
*/
|
|
GoodDerived = function() {
|
|
Base.call(this);
|
|
}
|
|
|
|
GoodDerived.prototype = {
|
|
__proto__: Base.prototype
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
* @template T
|
|
*/
|
|
var Set = function() {}
|
|
|
|
Set.prototype = {
|
|
add: function(item) {},
|
|
remove: function(item) {},
|
|
/** @return {boolean} */
|
|
contains: function(item) { return true; }
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Set.<T>}
|
|
* @template T
|
|
*/
|
|
var GoodSetSubclass = function()
|
|
{
|
|
Set.call(this);
|
|
}
|
|
|
|
GoodSetSubclass.prototype = {
|
|
__proto__: Set.prototype
|
|
}
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Set.<T>}
|
|
* @template T
|
|
*/
|
|
var BadSetSubclass = function()
|
|
{
|
|
}
|
|
|
|
BadSetSubclass.prototype = {
|
|
}
|
|
|
|
var NS = {};
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Base}
|
|
*/
|
|
NS.BadSubClass = function() {}
|