Fix lint issues.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@429 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
70fa44ecea
commit
2b3b31cf1c
@ -491,7 +491,7 @@ template <class Dest, class Source>
|
|||||||
inline Dest bit_cast(const Source& source) {
|
inline Dest bit_cast(const Source& source) {
|
||||||
// Compile time assertion: sizeof(Dest) == sizeof(Source)
|
// Compile time assertion: sizeof(Dest) == sizeof(Source)
|
||||||
// A compile error here means your Dest and Source have different sizes.
|
// A compile error here means your Dest and Source have different sizes.
|
||||||
typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 : -1];
|
typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
|
||||||
|
|
||||||
Dest dest;
|
Dest dest;
|
||||||
memcpy(&dest, &source, sizeof(dest));
|
memcpy(&dest, &source, sizeof(dest));
|
||||||
|
@ -166,8 +166,7 @@ $Object.prototype.constructor = $Object;
|
|||||||
throw new $TypeError('Object.prototype.__defineGetter__: this is Null');
|
throw new $TypeError('Object.prototype.__defineGetter__: this is Null');
|
||||||
}
|
}
|
||||||
if (!IS_FUNCTION(fun)) {
|
if (!IS_FUNCTION(fun)) {
|
||||||
throw new $TypeError(
|
throw new $TypeError('Object.prototype.__defineGetter__: Expecting function');
|
||||||
'Object.prototype.__defineGetter__: Expecting function');
|
|
||||||
}
|
}
|
||||||
return %DefineAccessor(ToObject(this), ToString(name), GETTER, fun);
|
return %DefineAccessor(ToObject(this), ToString(name), GETTER, fun);
|
||||||
}, DONT_ENUM);
|
}, DONT_ENUM);
|
||||||
|
Loading…
Reference in New Issue
Block a user