Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88162191
Source.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 17, 03:54
Size
569 B
Mime Type
text/x-c++
Expires
Sat, Oct 19, 03:54 (2 d)
Engine
blob
Format
Raw Data
Handle
21727176
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Source.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
class
Source
{
source
()
{
throw
new
Error
(
"Abstract"
);
}
buffer
()
{
const
source
=
this
.
source
();
if
(
Buffer
.
isBuffer
(
source
))
return
source
;
return
Buffer
.
from
(
source
,
"utf-8"
);
}
size
()
{
return
this
.
buffer
().
length
;
}
map
(
options
)
{
return
null
;
}
sourceAndMap
(
options
)
{
return
{
source
:
this
.
source
(),
map
:
this
.
map
(
options
)
};
}
updateHash
(
hash
)
{
throw
new
Error
(
"Abstract"
);
}
}
module
.
exports
=
Source
;
Event Timeline
Log In to Comment