Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1233
aphlict crash - phabricator version 1e1eb6921b1df7ad4f53a388549d3714853d2730
Active
Public
Actions
Authored by
webframp
on Aug 14 2014, 12:52 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Notifications
Referenced Files
F190526: aphlict_crash_-_phabricator_version_1e1eb6921b1df7ad4f53a388549d3714853d2730
Aug 14 2014, 12:52 PM
2014-08-14 12:52:37 (UTC+0)
Subscribers
None
<<<
UNCAUGHT
EXCEPTION
!
>>>
TypeError
:
Object
function
Buffer
(
subject
,
encoding
,
offset
)
{
if
(!(
this
instanceof
Buffer
))
{
return
new
Buffer
(
subject
,
encoding
,
offset
);
}
var
type
;
// Are we slicing?
if
(
typeof
offset
===
'number'
)
{
this
.
length
=
coerce
(
encoding
);
this
.
parent
=
subject
;
this
.
offset
=
offset
;
}
else
{
// Find the length
switch
(
type
=
typeof
subject
)
{
case
'number'
:
this
.
length
=
coerce
(
subject
);
break
;
case
'string'
:
this
.
length
=
Buffer
.
byteLength
(
subject
,
encoding
);
break
;
case
'object'
:
// Assume object is an array
this
.
length
=
coerce
(
subject
.
length
);
break
;
default
:
throw
new
Error
(
'First argument needs to be a number, '
+
'array or string.'
);
}
if
(
this
.
length
>
Buffer
.
poolSize
)
{
// Big buffer, just alloc one.
this
.
parent
=
new
SlowBuffer
(
this
.
length
);
this
.
offset
=
0
;
}
else
{
// Small buffer.
if
(!
pool
||
pool
.
length
-
pool
.
used
<
this
.
length
)
allocPool
();
this
.
parent
=
pool
;
this
.
offset
=
pool
.
used
;
pool
.
used
+=
this
.
length
;
}
// Treat array-ish objects as a byte array.
if
(
isArrayIsh
(
subject
))
{
for
(
var
i
=
0
;
i
<
this
.
length
;
i
++)
{
this
.
parent
[
i
+
this
.
offset
]
=
subject
[
i
];
}
}
else
if
(
type
==
'string'
)
{
// We are a string
this
.
length
=
this
.
write
(
subject
,
0
,
encoding
);
}
}
SlowBuffer
.
makeFastBuffer
(
this
.
parent
,
this
,
this
.
offset
,
this
.
length
);
}
has
no
method
'concat'
at
Socket
.<
anonymous
>
(/
home
/
phabricator
/
phabricator
/
support
/
aphlict
/
server
/
aphlict_server
.
js
:
89
:
21
)
at
Socket
.
emit
(
events
.
js
:
67
:
17
)
at
TCP
.
onread
(
net
.
js
:
347
:
14
)
>>>
Server
exited
!
Event Timeline
webframp
edited the content of this paste.
(Show Details)
Aug 14 2014, 12:52 PM
2014-08-14 12:52:37 (UTC+0)
webframp
changed the title of this paste from untitled to
aphlict crash - phabricator version 1e1eb6921b1df7ad4f53a388549d3714853d2730
.
webframp
updated the paste's language from
autodetect
to
php
.
webframp
added a project:
Notifications
.
Log In to Comment